<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>management</title>
<meta name="Keywords" content="" /> 
<meta name="Description" content="" />
<link type="text/css" rel="stylesheet" href="/css/main.css" />
<script src="/js/jquery-1.8.3.min.js"></script>
</head>
<body>
<div class="wrapper">
	<div class="mod_box">
		<div class="hd"><span class="tl"></span><span class="tr"></span></div>
		<div class="bd">
			<!--面包屑 begin-->
			<div class="crumb">location：<a href="javascript:void(0);">event</a> &gt; <a href="javascript:void(0);">list</a></div>
			<!--面包屑 end-->
			<!--列表数据 begin-->
			<table class="mod_table_2">
				<thead>
					<tr>
						<th class="th_first" width="6%"><span>Serial Num</span></th>
						<th width="8%"><span>Title</span></th>
						<th width="8%"><span>Status</span></th>
						<th width="20%"><span>Period</span></th>
						<th class="th_last" width="12%"><span>&nbsp;</span></th>
					</tr>
				</thead>
				<tbody>
					{{foreach from=$pageArray.rows key=key item=item}}
					<tr>
						<td class="td_first">{{$item.id}}</td>
						<td><a href="/index.php?r=event/show&eid={{$item.id}}" target="_blank">{{$item.title}}</a></td>
						<td>{{if $item.cancel == '1'}}Cancel{{else}}Normal{{/if}}</td>
						<td>{{$item.start_time_b_show}}　～　{{$item.end_time_b_show}}</td>
						<td class="td_last">
							{{if $item.cancel == '0'}}
							<a href="javascript:void(0);" class="cancel" id="{{$item.id}}">Cancel</a>
							<a href="/index.php?r=event/gen&eid={{$item.id}}">Edit</a>
							{{/if}}
							<a href="/index.php?r=event/del&eid={{$item.id}}">Delete</a>
							<a href="javascript:void(0)">report</a>
							<div style="clear: both;display: none">
								<i style="color:#EE0E0E">*</i><textarea name="note"></textarea>
							</div>
						</td>
					</tr>
					{{/foreach}}
				</tbody>
			</table>
			<!--列表数据 end-->
			<!--分页 begin-->
			{{include file="management/page.tpl.htm"}}
			<!--分页 end-->
		</div>
		<div class="ft"><span class="bl"></span><span class="br"></span></div>
	</div>
	<div id="cancel_div" style="display: none;position: fixed;top:50%;left:50%;z-index: 999;width: 300px;height: 150px;background-color: #CCC;text-align: center;">
		<form method="post" action="/index.php?r=event/cancel">
			<input type="hidden" name="eid"/>
			<textarea name="note" cols="25" rows="4"></textarea><br/>
			<input type="submit" value="submit"/>
		</form>
	</div>
</div>
	<script>
		$(document).ready(function(){
			$(".cancel").click(function(){
				if(confirm("确认取消？")){
					$("#cancel_div").find("input[name='eid']").val($(this).attr("id"));
					$("#cancel_div").show();
				}
			});
		});
	</script>
</body>
</html>